package thread;

import java.util.Scanner;

public class SieepDemo {
    public static void main(String[] args) {
        System.out.println("程序开始了");
        System.out.println("请输入数字：");
        Scanner scan = new Scanner(System.in);
        for (int i=scan.nextInt(); i > 0; i--) {
            System.out.println(i);
        }
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("时间到");
        System.out.println("程序结束了");
    }
}
